package tools.image;

import java.awt.Image;

import javax.swing.ImageIcon;

public class CargarIcono {
	
	public static ImageIcon cargarIcono(String pPath , int pAncho, int pAlto ) {
		ImageIcon icon = new ImageIcon(pPath);
		Image img = icon.getImage();
		Image newimg = img.getScaledInstance(pAncho, pAlto,  java.awt.Image.SCALE_SMOOTH);
		return new ImageIcon(newimg);
    }
 
}
